package com.yedean.factory.context;

import com.yedean.factory.support.DefaultListableBeanFactory;
import com.yedean.factory.support.XmlBeanDefinitionReader;

public abstract class AbstractXmlApplicationContext extends AbstractRefreshableApplicationContext{

    @Override
    protected void loadBeanDefinitions(DefaultListableBeanFactory factory) {
        XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(factory, this);
        String[] configurations = getConfigurations();
        reader.loadBeanDefinitions(configurations);
    }
    
    protected abstract String[] getConfigurations();
}
